#include<bits/stdc++.h>
using namespace std;

int n,g[100010],ton[100010];
int ys[100010],ans,maxx;

int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);

  scanf("%d",&n);
  for(int i=1;i<=n;i++){
    scanf("%d",&g[i]);
    maxx=max(maxx,g[i]);
    ton[g[i]]++;
  }

  int tmp=0;
  for(int i=1;i<=maxx;i++){
    if(ton[i]>0){
      ys[++tmp]=ton[i];
    }
  }

  int qian=0;
  for(int i=1;i<tmp;i++){
    if(ys[i]+qian<=ys[i+1]){
        ans+=ys[i];
        qian=0;
    }else{
        ans+=ys[i+1];
        qian=(ys[i]+qian-ys[i+1]);
    }

  }
  printf("%d",qian+ys[tmp]);
  return 0;
}
